<template>
    <div class="box">
       <img src="../../assets/images/error_images/404.png" alt="">
       <el-link class="btn" @click="goHome">点击返回首页</el-link>
    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

let $router = useRouter()

const goHome=()=>{
    $router.push('/home')
}
</script>

<style scoped lang="scss">
.box{
    width: 100vw;
    height: 100vh;
    background: skyblue;
    display: flex;
    justify-content: center;

    img{
        width: 800px;
        height: 500px;
    }

    .btn{
        font-size: 20px;
    }
}
</style>